import request from '@/utils/request'

// 列表
export function fetchAnnouncementList(data) {
	return request({
		url: '/announcement/getList',
		method: 'POST',
		data: data
	})
}

// 启用-停用
export function announcementDisable(data) {
	return request({
		url: '/announcement/disable',
		method: 'POST',
		data: data
	})
}

// 应用列表
export function appChannelGetlist(data) {
	return request({
		url: '/appChannel/getList',
		method: 'POST',
		data: data
	})
}

// 应用关联广告位
export function getAppPositionList(data) {
	return request({
		url: '/appChannel/getAppPositionList',
		method: 'POST',
		data: data
	})
}

// 创建公告
export function createaAnnouncement(data) {
	return request({
		url: '/announcement/create',
		method: 'POST',
		data: data
	})
}

// 修改公告
export function editAnnouncement(data) {
	return request({
		url: '/announcement/setInfo',
		method: 'POST',
		data: data
	})
}

// 公告详情
export function announcementInfo(data) {
	return request({
		url: '/announcement/getInfo',
		method: 'POST',
		data: data
	})
}

// 列表
export function fetchBannerList(data) {
	return request({
		url: '/banner/getList',
		method: 'POST',
		data: data
	})
}

// 启用/禁用
export function switchBannerList(data) {
	return request({
		url: '/banner/switch',
		method: 'POST',
		data: data
	})
}

//创建banner
export function createBanner(data) {
	return request({
		url: '/banner/create',
		method: 'POST',
		data: data
	})
}

//修改banner
export function setInfoBanner(data) {
	return request({
		url: '/banner/setInfo',
		method: 'POST',
		data: data
	})
}

//banner信息
export function getInfoBanner(data) {
	return request({
		url: '/banner/getInfo',
		method: 'POST',
		data: data
	})
}



// WEBPACK FOOTER //
// ./src/api/banner.js